# 3.1
# 继续
if 1 < 2 and \
        1 < 3:
    print(True)
# 三引号
print('''Hi man, this is a long message for you
that goes over multiple lines... you will find
out soon that tgriple quotes in Python allows
this kind of fun! It is like a day on the beach!''')
# 给多个变量赋值
a, b, c, d = (1, 'str', 40.0, -2.00)
print(a, b, c, d)
# 可同一行多个语句用分号分割
import sys;x = 'foo';sys.stdout.write(x + '\n')

# 3.2
x = 1
# 非法表达式
# y = (x = x+1)
y = x = x + 1
print(x, y)
x += 1
print(x)
# 不支持
# x++ --x
x, y, z = 1, 2, 'a string'
print(x, y, z)
# PyCharm 快速运行 shift + F10
x, y = y, x
print(x, y)

# 3.3
import keyword
print(keyword.iskeyword('foreach'))

# 3.4
print(slice.__doc__)
def test(param):
    print(param)
if __name__ == '__main__':
    test(123)
    print(__name__)

# 3.5
del(x, y, z)
